//
// Created by hps on 24-4-19.
//

#include "ChooseOrCancelButton.h"

namespace hps {
ChooseOrCancelButton::ChooseOrCancelButton() {
    m_layout = new QHBoxLayout();
    m_canselButton = new QPushButton();
    m_okButton = new QPushButton();
    init();
    setUi();
}
void ChooseOrCancelButton::init() {
    m_layout->setContentsMargins(0, 0, 0, 0);
    m_layout->setSpacing(10);
    m_okButton ->setText("确定");
    m_canselButton ->setText("取消");
}
void ChooseOrCancelButton::setUi() {
    this ->setLayout(m_layout);
    m_layout ->addWidget(m_canselButton);
    m_layout ->addWidget(m_okButton);
}
} // hps